<template>
  <div class="nav-bar">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="center">
      <slot name="center">{{ title }}</slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>



<script>
/*  推荐
  	<template v-slot:footer>
			<h4>欢迎前来观影</h4>
		</template>
*/
export default {
  name: 'NavBar',
  props: {
    title: { type: String, default: '' }
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.nav-bar {
  display: flex;
  min-height: 100px;

  .left {
    width: 100px;
    background: #000;
  }

  .center {
    flex: 1;
    background: red;
  }

  .right {
    width: 100px;
    background: #000;
  }
}
</style>